# Dockerfile for one_cms

From registry.cn-beijing.aliyuncs.com/fx/base

MAINTAINER Jerry "xiuce123@126.com"

ENV stage='production'

RUN mkdir -p /var/www \
    && cd /var/www \
    && git clone git@gitee.com:myjacksun/cms_admin.git

WORKDIR /var/www/cms_admin
ADD ./api.js  src/config/api.js

ADD ./cp-file.sh /usr/bin/cp-file
RUN chmod +x /usr/bin/cp-file

RUN /usr/bin/cp-file
RUN mkdir -p /var/www/one_cms/public/manage
RUN cp -r dist/* /var/www/one_cms/public/manage/ #\
		# && rm -rf dist

EXPOSE 8085

# # Start nginx when container starts
#ENTRYPOINT /usr/bin/start-server
